    /**
     * 永久删除操作项
     * @param obj this
     * @param id 对象id
     * @param url 删除地址，一般为 {:url('delete_forever')}
     */
    function del_forever(obj, url, fn) {
        _del(obj,  url, '您确定要删除此项并且不能恢复？', fn);
    }

    function _del(obj,  url, msg, fn) {
        _del_recycle(obj,  url, msg, "已删除！", fn)
    }

    function _del_recycle(obj,  url, msg, returnMsg, fn) {
        layer.confirm(msg, {
            btn: ['确定', '取消'],
            title: '提示',
            icon: 3
        }, function () {

            $.post(
                url,
                {'_method': 'DELETE'},
                function (data) {
                    if(data.hasOwnProperty('code')){
                        /* 表单验证错误 */
                        if(data.code == 200){

                            layer.msg(returnMsg, {icon: 1, time: 1000});
                            $(obj).parents("tr").fadeOut();
                        }else{
                            layer.msg(data.message, {icon: 2, time: 1000});
                        }
                    }else{

                        layer.msg('网络请求失败', {icon: 2, time: 1000});

                    }

                fn && fn(data);
            }, 'json')
        }, function (index) {
            layer.close(index);
        });
    }